package cn.elves.model.rule.service;

import cn.elves.model.rule.entity.dto.RuleTreeDTO;
import cn.elves.model.rule.entity.po.RuleTree;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author pc
* @description 针对表【rule_tree】的数据库操作Service
* @createDate 2024-06-16 12:48:17
*/
public interface RuleTreeService extends IService<RuleTree> {

    void saveRuleTree(RuleTreeDTO ruleTree);

    void updateRuleTree(RuleTreeDTO ruleTree);

    RuleTreeDTO queryRuleTree(Long treeId);

    void addRule(String ruleKey) throws Exception;

    String doDecision(Long treeId,Map<String,Object> matter);

}
